﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkCenter.aspx.cs" Inherits="WMS6.Web.VAS.WorkCenter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ASN</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
   
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newASN()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "WorkCenter.aspx?from=" +escape(from);
            return false;
        }
        
       
        
        //弹出窗口选择收料货位
        function selectLocation1()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtLocInbound','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLocInbound").focus();
                document.getElementById("txtLocInbound").value = rtnValue;
            }
        }
        
         //弹出窗口选择加工货位
        function selectLocation2()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtLoc','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLoc").focus();
                document.getElementById("txtLoc").value = rtnValue;
            }
        }
        
         //弹出窗口选择完工货位
        function selectLocation3()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtLocOpComplete','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLocOpComplete").focus();
                document.getElementById("txtLocOpComplete").value = rtnValue;
            }
        }
        
         //弹出窗口选择成品落放货位
        function selectLocation4()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtLocFinishedGood','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLocFinishedGood").focus();
                document.getElementById("txtLocFinishedGood").value = rtnValue;
            }
        }
        

		function confirmMsg(code) {
		    if (code == "F4100_001") {
		        if (confirm('<%=GetGlobalMsgResource("F4100_001") %>')) {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		}
    </script>
</head>
<body >
    <form id="F79741" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="工作中心" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnGoBack%>"  
                            CausesValidation="False" onclick="btnGoBack_Click" 
                           /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button"
                            Text="<%$Resources:ButtonResource,btnNew%>"  AccessKey="n" OnClientClick="newASN();return false;" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s" onclick="btnSave_Click"  /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnDelete%>"  
                            AccessKey="d" 
                          OnClientClick="javascript:if(confirmMsg('F4100_001'))return true; else return false;"
                            onclick="btnDelete_Click"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnCopy%>" 
                            AccessKey="c" onclick="btnCopy_Click" 
                           /></td>
                    <td>
                             
                    </td>
                     <td>  </tr>
            </table>
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                
               <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)" id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1"></div>
                    </div>
               </div>
            
         <div id="div_content">
                 <div id="con_one_1" style="display:block;">
                    <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblOperationID" CssClass="label" runat="server" Text="工作中心" ></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                            
                            </td>
                            
                            <td width="180px">
                             
                            </td>
                            <td width="180px">
                              
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtWorkCneterID" runat="server" CssClass="textbox" 
                                    MaxLength="20"></asp:TextBox>
                            </td>
                            <td width="180px">
                                
                            </td>
                            <td width="180px">
                              
                            </td>
                            <td width="180px">
                                </td>
                        </tr>
                          <tr>
                            <td width="180px">
                               <asp:Label ID="lblDescr" CssClass="label" runat="server" Text="描述" ></asp:Label>
                            </td>
                            <td width="180px">
                               
                            </td>
                            
                            <td width="180px">
                             
                            </td>
                            <td width="180px">
                              
                            </td>
                        </tr>
                        <tr>
                            <td width="180px" colspan=2>
                                <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" 
                                    MaxLength="20" ></asp:TextBox>
                            </td>
                          
                            <td width="180px">                              
                            </td>
                            <td width="180px">
                                </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblLocInbound" runat="server" CssClass="label" Text="收料货位" ></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblLoc" runat="server" CssClass="label" Text="加工货位" ></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                                
                            </td>
                            <td width="180px">
                               
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtLocInbound" runat="server" CssClass="textbox"></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item" class="img" onclick="selectLocation1();"/>
                            </td>
                            <td width="180px">
                            <asp:TextBox ID="txtLoc" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item" class="img" onclick="selectLocation2();"/>
                            </td>
                            <td width="180px">
                               
                            </td>
                            <td width="180px">
                                </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblLocOpComplete" runat="server" CssClass="label" Text="完工货位" ></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblLocFinishedGood" runat="server" CssClass="label" Text="成品落放货位" ></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                              
                            </td>
                            <td width="180px">
                            
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtLocOpComplete" runat="server" CssClass="textbox"   ></asp:TextBox><img src="../Images/icon_find.gif" id="img2" runat="server" alt="select one item" class="img" onclick="selectLocation3();"/>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtLocFinishedGood" runat="server" CssClass="textbox"   ></asp:TextBox><img src="../Images/icon_find.gif" id="img3" runat="server" alt="select one item" class="img" onclick="selectLocation4();"/>
                            </td>
                            <td width="180px">
                               
                            </td>
                            <td width="180px">
                          
                            </td>
                        </tr>
                       
                        <tr style="height:10px;"><td><asp:CheckBox ID="cheIsActive" runat="server" CssClass="selectbox"  Checked="true" Width="150px"
                                Text="启用"  /> </td><td></td><td></td><td></td></tr>
                    </table>
                 </div>
        
          
           </div>
           
          
            
            </ContentTemplate>

      </asp:UpdatePanel>
            <input type="hidden" id="hdnFrom" runat="server" />
            <input type="hidden" id="hdnWorkCenterID" runat="server" />
    </div>
    </form>
</body>
</html>
